﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using topicos2_oztech_drturin.Banco;

namespace topicos2_oztech_drturin.Paciente
{
    public partial class Cadastro : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Buttton1_Click(object sender, EventArgs e)
        {
            PacienteDB cons = new PacienteDB();
            int permissaoPaciente = 1;

            if (cons.Cadastrar(txbNome.Text, txbCPF.Text, txbSenha.Text, permissaoPaciente))
            {
                //lblSaida.Text = "cadastrado";
            }
            else 
            {
                //lblSaida.Text = "erro";
            }
        }
    }
}